package switchviz.network.netswitch;

import java.util.ArrayList;
import java.util.List;


public class SwitchDataModel 
{
	private String _name = "";
	
	private String _address = "";
	private int _port;
	private String _community = "";
	private long _timeout;
	private int _maxretries;
	private int _pducapacity;
	private String _description = "";
	private long _uptime = 0;
	private List<String> _portlist = new ArrayList<String>();
	private String _type = "";
	
	public SwitchDataModel()
	{
		this("", "", 161, "public", "", 10000, 0, 30);
	}
	
	public SwitchDataModel(String name, String address, int port, String community, String description, long timeout, int maxretries, int pducapacity)
	{
		this.setName(name);
		this.setAddress(address);
		this.setPort(port);
		this.setCommunity(community);
		this.setDescription(description);
		this.setTimeout(timeout);
		this.setMaxRetries(maxretries);
		this.setPDUCapacity(pducapacity);
	}
	
	public List<String> getPortList()
	{
		return _portlist;
	}
	
	public void setPortList(List<String> portlist)
	{
		_portlist = portlist;
	}
	
	public String getType()
	{
		return _type;
	}
	
	public void setType(String type)
	{
		_type = type;
	}

	public String getName()
	{
		return _name;
	}
	
	public void setName(String name)
	{
		_name = name;
	}

	public String getCommunity()
	{
		return _community;
	}

	public void setCommunity(String community)
	{
		_community = community;
	}
	
	public String getAddress()
	{
		return _address;
	}
	
	public void setAddress(String address)
	{
		_address = address;
	}
	
	public int getPort()
	{
		return _port;
	}
	
	public void setPort(int port)
	{
		_port = port;
	}
	
	public void setDescription(String description)
	{
		_description = description;
	}
	
	public String getDescription()
	{
		return _description;
	}

	public long getTimeout()
	{
		return _timeout;
	}
	
	public void setTimeout(long timeout)
	{
		_timeout = timeout;
	}
	
	public int getMaxRetries()
	{
		return _maxretries;
	}
	
	public void setMaxRetries(int maxretries)
	{
		_maxretries = maxretries;
	}
	
	public int getPDUCapacity()
	{
		return _pducapacity;
	}
	
	public void setPDUCapacity(int pducapacity)
	{
		_pducapacity = pducapacity;
	}

	public void setUpTime(long uptime)
	{
		_uptime = uptime;
	}
	
	public long getUpTime()
	{
		return _uptime;
	}
	
	public String toString()
	{
		return getName();
	}

}
